package com.neuedu.elmserver.utils;

import com.neuedu.elmserver.pojo.Business;

import java.util.Comparator;

public class cmpSales implements Comparator<Business> {

    /**
     * 大到小
     * @return
     */
    @Override
    public int compare(Business o1, Business o2) {
        return o2.getSales() - o1.getSales();
    }
}
